
@prefixCls: ~'addon-layui-divider';

.@{prefixCls} {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: rgba(0,0,0,.85);
  font-size: 14px;
  font-variant: tabular-nums;
  border-top: 1px solid rgba(0,0,0,.06);
  &-vertical {
    position: relative;
    top: -.06em;
    display: inline-block;
    height: .9em;
    margin: 0 8px;
    vertical-align: middle;
    border-top: 0;
    border-left: 1px solid rgba(0,0,0,.06);
  }
  &-horizontal {
    display: flex;
    clear: both;
    width: 100%;
    min-width: 100%;
    margin: 24px 0;

  }
  &-horizontal.@{prefixCls}-with-text {
    display: flex;
    margin: 16px 0;
    color: rgba(0,0,0,.85);
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
    text-align: center;
    border-top: 0;
    border-top-color: rgba(0,0,0,.06);
    &::before {
      position: relative;
      top: 50%;
      width: 50%;
      border-top: 1px solid transparent;
      border-top-color: inherit;
      border-bottom: 0;
      transform: translateY(50%);
      content: ''
    }
    &::after {
      position: relative;
      top: 50%;
      width: 50%;
      border-top: 1px solid transparent;
      border-top-color: inherit;
      border-bottom: 0;
      transform: translateY(50%);
      content: '';
    }
    .@{prefixCls}-inner-text {
      display: inline-block;
      padding: 0 1em;
    }
  }
  &.@{prefixCls}-horizontal.@{prefixCls}-with-text-left {
    &::before {
      top: 50%;
      width: 5%;
    }
    &::after {
      top: 50%;
      width: 95%;
    }
  }
  &.@{prefixCls}-horizontal.@{prefixCls}-with-text-right {
    &::before {
      top: 50%;
      width: 95%;
    }
    &::after {
      top: 50%;
      width: 5%;
    }
  }
}  